package com.example.study_thread.a_file;

import java.io.File;
import java.io.IOException;

public class Demo5File {
    public static void main(String[] args) {
        File file = new File("a.txt");
        System.out.println(file);

        File file1 = new File("b.txt");
        try {
            System.out.println(file.createNewFile());
            System.out.println("file1:" + file1.createNewFile());
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
